package com.turing.post.cardmanagement.util;

import java.io.Serializable;
import java.math.BigInteger;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * @author zxp
 * @Mar 11, 2013
 */
@SuppressWarnings("serial")
@Entity
@Table(name = "CardFace")
public class CardFace implements Serializable {

	/**
	 * 0 –磁卡
	 */
	public static final String CARDFACE_MEDIATYPE_CK = "0";
	/**
	 * 1 –CPU多界面卡
	 */
	public static final String CARDFACE_MEDIATYPE_CPU = "1";
	
	/**
	 * 1 –是否允许多应用 允许
	 */
	public static final String CARDFACE_AllowMultiApp_Allow = "1";
	
	/**
	 * 0 –是否允许多应用 不允许
	 */
	public static final String CARDFACE_AllowMultiApp_NoAllow = "0";
//	/**
//	 * 2 –射频卡
//	 */
//	public static final String CARDFACE_MEDIATYPE_SPK = "2";

	private BigInteger cardFaceId;// (PK) 卡面图样ID int Not Null
	private String cardFaceName;// 卡面图样名称 Varchar2（60） Not Null
	private String issueCompanyNo;// (FK) 发卡商NO char(6) Not Null
	private BigInteger imageId;// 正面图样Id Int Null
	private BigInteger backImageId;// 背面图样Id Int Null
	private String mediaType;// 介质类型 char(1) Not Null
	
	private String allowMultiApp;
	private String remark;// 备注 Varchar（255） Not Null

	public CardFace() {

	}

	@Id
	@Column(name = "cardFaceId")
	public BigInteger getCardFaceId() {
		return cardFaceId;
	}

	public void setCardFaceId(BigInteger cardFaceId) {
		this.cardFaceId = cardFaceId;
	}
	
	@Column(name = "cardFaceName")
	public String getCardFaceName() {
		return cardFaceName;
	}

	public void setCardFaceName(String cardFaceName) {
		this.cardFaceName = cardFaceName;
	}

	@Column(name = "issueCompanyNo")
	public String getIssueCompanyNo() {
		return issueCompanyNo;
	}

	public void setIssueCompanyNo(String issueCompanyNo) {
		this.issueCompanyNo = issueCompanyNo;
	}

	@Column(name = "imageId")
	public BigInteger getImageId() {
		return imageId;
	}

	public void setImageId(BigInteger imageId) {
		this.imageId = imageId;
	}

	@Column(name = "backImageId")
	public BigInteger getBackImageId() {
		return backImageId;
	}

	public void setBackImageId(BigInteger backImageId) {
		this.backImageId = backImageId;
	}

	@Column(name = "mediaType")
	public String getMediaType() {
		return mediaType;
	}

	public void setMediaType(String mediaType) {
		this.mediaType = mediaType;
	}

	public String getAllowMultiApp() {
		return allowMultiApp;
	}

	public void setAllowMultiApp(String allowMultiApp) {
		this.allowMultiApp = allowMultiApp;
	}

	@Column(name = "remark")
	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}
}